package com.veepeak.server.domain;

import com.veepeak.server.common.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@DynamicUpdate
@DynamicInsert
@Table(name = "command_dtc")
@Data
@EqualsAndHashCode(callSuper = false)
@ToString
public class DtcCommand extends BaseEntity {
    private String pid ;
    private String description;
    private String category;

    public DtcCommand(){}

    public DtcCommand(String pid, String description, String category) {
        this.pid = pid;
        this.description = description;
        this.category = category;
    }

    public final static String CATEGORY_DTC = "dtc"; //故障代码
    public final static String CATEGORY_FREEZE = "freeze"; //冻结帧
    public final static String CATEGORY_EXHAUST = "exhaust"; //尾气检测
}
